﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="cpws.aspx.cs" Inherits="SzCourt.WebSite.shenwu.cpws" %>
<%@ Register Src="~/control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/control/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@ Register src="~/control/pager.ascx" tagname="pager" tagprefix="uc3" %>
<%@ Register src="../control/menu.ascx" tagname="menu" tagprefix="uc4" %>
<%@ Register src="../control/partselect.ascx" tagname="partselect" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>审务公开 工作报告- 深圳市中级人民法院 </title>
    <meta id="ctl00_KeyWD" content="深圳,中级,法院,诉讼,政府" name="Keywords" />
    <meta id="ctl00_desP" content="深圳市中级人民法院" name="description" />
    <link href="/images/skin2010/base.css" rel="stylesheet" type="text/css" />
    <script src="/js/sw.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="SZCOURT">
        <uc1:header ID="header1" runat="server" />
        <div class="content">
            <div class="dl">
                <uc4:menu ID="menu1" runat="server" />
            </div>
            <div class="dr">
                <uc5:partselect ID="partselect1" runat="server" />
                <!-- 法庭公告 -->
                <div class="tab">
                    <div class="tt">
                        <h3>
                            裁判文书</h3>
                        <p class="clear"></p>
                    </div>
                    <div id="fytab11">
                        <div class="search">
                            文书类型:<select class="w60" id="sltCaseClass" runat="server"><option></option>
                                <option>刑事</option>
                                <option>民事</option>
                                <option>商事</option>
                                <option>行政</option>
                            </select>
                            <%--年号:<select class="w60" id="sltCaseYear" runat="server"><option value=""></option>
                                <option>2011</option>
                                <option>2010</option>
                                <option>2009</option>
                            </select>
                            字号:<select class="w80" id="sltCaseWord" runat="server"><option></option>
                                <option>民初</option>
                                <option>刑初</option>
                                <option>商初</option>
                            </select>
                            案件编号:<input type="text" class="w80 txt" id="txtCaseNum" runat="server" value="" />--%>
                             案号:<input type="text" value="" id="txtCaseName" runat="server" class="w80 txt" />
                            文书内容:<input type="text" value="" class="w80 txt" id="txtCaseContent" runat="server" />
                            <input type="button" class="btn w60" value="查询" onclick="search();" />
                        </div>
                        <div class="grid">
                            <ul class="title">
                                <li class="p1">序号</li>
                                <li class="p2">案号</li>
                                <li class="p9">审级</li>
                                <li class="p220">案由</li>
                                <li class="p5">上传日期</li>
                                <li class="p5">详细内容</li>
                            </ul>
                            <asp:Repeater runat="Server" ID="rptDataList">
                                <ItemTemplate>
                                    <ul  <%#Container.ItemIndex % 2 == 0 ? "" : "class=\"bg\"" %>>
                                        <li class="p1"><%# (Container.ItemIndex+1).ToString() %></li>
                                        <li class="p2"><a href="/shenwu/cpview.aspx?id=<%#Eval("RefereeDocID").ToString()%>" target="_blank" title="<%#Eval("CaseName")%>"><%#Eval("CaseName")%></a></li>
                                        <li class="p9"><%#Eval("CaseLevel").ToString()%></li>
                                        <li class="p220"><%#Eval("CauseOfAction").ToString()%></li>
                                        <li class="p5"><%#Convert.ToDateTime(Eval("AddDate")).ToString("yyyy-MM-dd")%></li>
                                        <li class="p5"><a href="/shenwu/cpview.aspx?id=<%#Eval("RefereeDocID").ToString()%>" target="_blank">查看>></a></li>
                                    </ul>
                                </ItemTemplate>
                            </asp:Repeater>                  
                        </div>
                    </div>
                </div>
                
                <div class="page">
                    <uc3:pager ID="pager1" runat="server" />
                </div>
            </div>
            <div class="g_cf">
            </div>
        </div>

        <uc2:footer ID="footer1" runat="server" />
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function search() {
        //文书内容
        var CaseContent = document.getElementById("txtCaseContent").value;

        var CaseName = document.getElementById("txtCaseName").value;

//        //案件编号
//        var CaseNum = document.getElementById("txtCaseNum").value;
//        
//        //字号
//        var sltCaseWord = document.getElementById("sltCaseWord").options;
//        var CaseWord = "";
//        for (i = 0; i < sltCaseWord.length; i++) {
//            var op = sltCaseWord[i];
//            if (op.selected) {
//                CaseYear = op.value;
//            }
//        }

//        //年号
//        var sltCaseYear = document.getElementById("sltCaseYear").options;
//        var CaseYear = "";
//        for (i = 0; i < sltCaseYear.length; i++) {
//            var op = sltCaseYear[i];
//            if (op.selected) {
//                CaseYear = op.value;
//            }
//        }

        //文书类型
        var sltCaseClass = document.getElementById("sltCaseClass").options;
        var CaseClass = "";
        for (i = 0; i < sltCaseClass.length; i++) {
            var op = sltCaseClass[i];
            if (op.selected) {
                CaseClass = op.value;
            }
        }

        window.location.href = "/shenwu/cpws.aspx?CaseContent=" + encodeURIComponent(CaseContent) + "&CaseName=" + encodeURIComponent(CaseName) + "&CaseClass=" + CaseClass;
    }
</script>

